package com.zryc.shop.cms.controller;

import com.zryc.shop.base.Result;
import com.zryc.shop.cms.service.IPrefrenceAreaService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 优选专区 前端控制器
 * </p>
 *
 * @author zhaozhao
 * @since 2024-01-18
 */
@RestController
@RequestMapping("/cms/prefrenceArea")
public class PrefrenceAreaController {

    @Autowired
    private IPrefrenceAreaService prefrenceAreaService;

    @GetMapping("/listAll")
    @ApiOperation("查询全部prefrenceArea")
    public Result listAll(){
        return Result.ok(prefrenceAreaService.list());
    }
}
